﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using System.Web.UI.WebControls;

namespace JobSeek
{
    public class Global : System.Web.HttpApplication
    {

        protected void Application_Start(object sender, EventArgs e)
        {
         //   ListItemCollection collections = new ListItemCollection();
          //  ListItemCollection hourCollections = new ListItemCollection();
            List<ListItem> collections = new List<ListItem>();
            List<ListItem> hourCollections = new List<ListItem>();
            int startingSalary = 0;
            int hourlyRate = 0;
            for (int i = 0; i <= 40; i++)
            {
                collections.Add(new ListItem(startingSalary.ToString("C0"), startingSalary.ToString()));

                startingSalary += 5000;

                hourCollections.Add(new ListItem(hourlyRate.ToString("C0"), hourlyRate.ToString()));
                hourlyRate += 5;
            }


            Application["annual"] = collections;

            Application["comm"] = collections;

            Application["hourly"] = hourCollections;


            Application["annualComm"] = collections;
        }

        protected void Session_Start(object sender, EventArgs e)
        {

        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {

        }

        protected void Application_End(object sender, EventArgs e)
        {

        }
    }
}